using System.Collections.Generic;
using UnityEngine;
using System.Linq;

[CreateAssetMenu(fileName = "Condition21-己方棋子的数量有没有小于个数", menuName = "Skill/Condition/Condition21-己方棋子的数量有没有小于个数", order = 21)]
public class Condition21 : ConditionBase
{
    public int count;
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        return ChessManager.GetInstance().chessList.Count(currentChess => currentChess.GetChessSide() == pair.Chess.GetChessSide()) < count;
    }
}